/*
 * my handlers
 */
$('form').submit(function(){
	var paramsData = new Object();
		paramsData['email'] = $(this).find('input[name="email"]').val();
		paramsData['pass'] =  $(this).find('input[name="pass"]').val();
	$.ajax({
		type: 'post',
		url: 'index.php/login/loginUser',
		data: 'params=' + $.toJSON(paramsData),
		success: function(msg){
			if(msg == '1'){
				location.reload();
			}
			else{
				Qlsolution.alerts.showAlert({
					selector: $('section'),
					type: 'warning',
					content: 'Incorrect login and/or pass'
				})
			}
		}
	});
	return false;
});